package com.example.demo.domain;

import org.apache.ibatis.type.Alias;

/**
 * @Create:     Space
 * @Time:       2020-06-10 18:54:00
 * @Describe:   订单信息
 */
@Alias("orders")
public class Order
{
    private Integer id;
    private Integer state;
    private String times;
    private Integer goodsNum;
    private Double buying_price;
    private Double selling_price;
    //订单用户
    private Integer uid;
    private User user;

    private Integer aid;
    private Address address;

    private Integer gid;
    private Goods goods;

    private Integer eid;
    private Express express;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getTimes() {
        return times;
    }

    public void setTimes(String times) {
        this.times = times;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public Integer getGoodsNum() {
        return goodsNum;
    }

    public void setGoodsNum(Integer goodsNum) {
        this.goodsNum = goodsNum;
    }

    public Double getBuying_price() {
        return buying_price;
    }

    public void setBuying_price(Double buying_price) {
        this.buying_price = buying_price;
    }

    public Double getSelling_price() {
        return selling_price;
    }

    public void setSelling_price(Double selling_price) {
        this.selling_price = selling_price;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    public Integer getEid() {
        return eid;
    }

    public void setEid(Integer eid) {
        this.eid = eid;
    }

    public Express getExpress() {
        return express;
    }

    public void setExpress(Express express) {
        this.express = express;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", state=" + state +
                ", times='" + times + '\'' +
                ", goodsNum=" + goodsNum +
                ", buying_price=" + buying_price +
                ", selling_price=" + selling_price +
                ", uid=" + uid +
                ", user=" + user +
                ", aid=" + aid +
                ", address=" + address +
                ", gid=" + gid +
                ", goods=" + goods +
                ", eid=" + eid +
                ", express=" + express +
                '}';
    }
}
